#include "Loader.h"

Loader::Loader(std::string identifiant)
{
    Id=identifiant;
}

bool Loader::Load(){
    std::string temp="data/"+Id;
    if(!m_Image.LoadFromFile(temp)){
        std::cerr<<"Error during import "<<temp<<std::endl; // On affiche l'erreur
        return false;
    }
    m_Sprite.SetImage(m_Image);
    return true;
}

bool Loader::UnLoad(){
    delete(&m_Image);
    return true;
}

Loader::~Loader()
{
    //dtor
}
